<template>
  <div>
    <input type="text" :value="value" @input="inputFn">
  </div>
</template>

<script>
export default {
  props: ['value'],
  methods: {
    inputFn (e) {
      let value = e.target.value
      this.$emit('input', value)
    }
  }
}
</script>
